﻿#include"account.h";
#include<iostream>

using namespace std;

void print_Account(string title, Account* p) {
	cout << title << p->name() << "(" << p->no() << ") " << p->balance() << "元\n";
}

int main() {
	Account liyang("李阳", "12345678", 1000);
	Account zhouyan("周燕", "87654321", 200);

	liyang.withdraw(200);
	zhouyan.deposit(200);

	print_Account("李阳的账户：", &liyang);
	print_Account("周燕的账户：", &zhouyan);

	cin.get();
}